import { Router } from 'express';
import * as Controller from '../api/controllers/machine-appointment.controller';

const router = Router();

router
  .route('/')
  .get(
    Controller.getMachineAppointments
  );

router
  .route('/applied/:id')
  .get(
    Controller.getAppliedMachineAppointmentsById
  );

router
  .route('/:id')
  .get(
    Controller.getMachineAppointmentById
  );

router
  .route('/')
  .post(
    Controller.addMachineAppointment
  );

router
  .route('/:id')
  .put(
    Controller.updateMachineAppointmentById
  );

router
  .route('/:id')
  .delete(
    Controller.deleteMachineAppointmentById
  );

export default router;